package com.tg.paw.ums.mapper;

import com.tg.paw.ums.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author Rubble
 * @since 2020-10-22
 */
@Mapper
@Repository
public interface PermissionMapper extends BaseMapper<Permission> {


    /**
     * 获取用户权限
     * @param adminId
     * @return
     */
    List<Permission> selectUserPermissions(@Param("adminId") Long adminId);
}
